package com.lyl.spring02.serivce;

import com.lyl.spring02.dao.UserDao;
import org.springframework.stereotype.Service;

//@Component
@Service
public class UserService {

    private UserDao userDao= new UserDao();

    public UserService(){
        System.out.println("UserService构造方法执行");
    }

    public void add(){
        System.out.println("UserService的add方法执行");
//        userDao.add();
    }

}
